/**
 * 派车单管理 - api
 * @author xiaoxujs
 */

import { basicIp, newHttpService } from "../../../api/http"
import { IPcdZyVehicleInfoAddParams, IPcdZyVehicleInfoEditParams, IPcdZyVehicleInfoSelectParams } from "../../../type/paichedan";
// 派车单管理 - 列表数据
export const postPcdZyVehicleInfoSelect = (data: IPcdZyVehicleInfoSelectParams) => {
    const url = basicIp + '/pcd/zy-vehicle-info/select';
    return newHttpService.postData(url, data)
}
// 派车单管理 - 添加车辆
export const postPcdZyVehicleInfoAdd = (data: IPcdZyVehicleInfoAddParams ) => {
    const url = basicIp + '/pcd/zy-vehicle-info/add';
    return newHttpService.postData(url, data)
}
// 派车单管理 - 编辑
export const putPcdZyVehicleInfoEdit = (data: IPcdZyVehicleInfoEditParams ) => {
    const url = basicIp + '/pcd/zy-vehicle-info/edit';
    return newHttpService.putData(url, data)
}
// 派车单管理 - 删除
export const getPcdZyVehicleInfoDelete = (data: {
    id: string
} ) => {
    const url = basicIp + '/pcd/zy-vehicle-info/delete';
    return newHttpService.getData(url, data)
}
